import request from '@/utils/request'

// 查询外语水平列表
export function listRegisterLanguage(query) {
  return request({
    url: '/business/registerLanguage/list',
    method: 'get',
    params: query
  })
}

// 查询外语水平所有列表
export function listAllRegisterLanguage(query) {
  return request({
    url: '/business/registerLanguage/listAll',
    method: 'get',
    params: query
  })
}

// 查询外语水平详细
export function getRegisterLanguage(id) {
  return request({
    url: '/business/registerLanguage/getInfo/' + id,
    method: 'get'
  })
}

// 新增外语水平
export function addRegisterLanguage(data) {
  return request({
    url: '/business/registerLanguage/add',
    method: 'post',
    data: data
  })
}

// 修改外语水平
export function updateRegisterLanguage(data) {
  return request({
    url: '/business/registerLanguage/edit',
    method: 'post',
    data: data
  })
}

// 删除外语水平
export function delRegisterLanguage(id) {
  return request({
    url: '/business/registerLanguage/remove/' + id,
    method: 'get'
  })
}
